<link href="<?php echo base_url("public/template/frontend/css/ui-lightness/jquery-ui-1.10.4.min.css") ?>" rel="stylesheet" type="text/css"/>

<div class="title-menu">
    <h2>Sửa đơn hàng</h2>
</div>
<nav class="bonus">
    <a href="<?php echo base_url("backend/orders");?>"><< Quay lại</a>
</nav>
<article>
    <form method="post" action="">
        <fieldset>
            <ul class="error">
                <?php echo validation_errors(); ?>                       
            </ul>
            
            <p>
                <label>Địa chỉ:</label>
                <input type="text" name="data[address]" value="<?php echo isset($cat->address)?$cat->address:'';?>"/>
            </p>
            <p>
                <label>Yêu cầu:</label>
                <textarea name="data[req]"><?php echo isset($cat->req)?$cat->req:'';?></textarea> 
            </p>
            <script>
                $(function() {
                    $("#datepicker").datepicker({ dateFormat: 'yy-mm-dd' });
                });
            </script>
            <p>
                <label>Ngày giao hàng:</label>
                <input id="datepicker" type="text" name="data[deli_date]" value="<?php echo isset($cat->deli_date)?$cat->deli_date:'';?>"/>
            </p>
            <p>
                <label>Trạng thái:</label>
                <select name="data[status]">
                    <option value="0" <?php if($cat->status == 0) echo "checked";?> >Đang xử lý</option>
                    <option value="1" <?php if($cat->status == 1) echo "checked";?>>Đã xử lý</option>                   
                </select>
            </p>
            <p>
                <label></label>
                <input type="submit" name="add" value="Sửa"/>
            </p>
        </fieldset>
    </form>
</article>